package com.wangjiyuan.shiwupai.ui.fragment.guangchi.pager;

import com.wangjiyuan.shiwupai.bean.guangchi.evaluation.EvaluationBean;
import com.wangjiyuan.shiwupai.bean.guangchi.first.FirstBean;
import com.wangjiyuan.shiwupai.bean.guangchi.food.FoodBean;
import com.wangjiyuan.shiwupai.http.HttpInterfaces;
import com.wangjiyuan.shiwupai.http.HttpUtils;

import java.util.Map;

import rx.Observable;

/**
 * Created by wjy on 2016/11/30.
 */

public class PagerModel implements PagerContract.PagerModel {
    HttpInterfaces httpInterfaces;

    public PagerModel() {
        httpInterfaces = HttpUtils.getInstance().getHttpInterfaces();
    }

    @Override
    public Observable<EvaluationBean> getEvaluation(Map<String, String> map) {
        return httpInterfaces.getEvaluation(map);
    }

    @Override
    public Observable<FoodBean> getFood(Map<String, String> map) {
        return httpInterfaces.getFood(map);
    }

    @Override
    public Observable<FirstBean> getFirst(Map<String, String> map) {
        return httpInterfaces.getFirst(map);
    }
}
